#include<iostream>
using namespace std;

class A {
    public:
        void printAddress() {
        }
        A * getSelf() {
            return this;
        }
};

int main() {
    A aa;
    aa.printAddress();
    A * p = aa.getSelf();
    cout <<  p << endl;

    int a = 3;
    char cp[] = "I love you";
    cout << "a'address = " << &a << endl;
    cout << "cp'address = " << static_cast<void *>(cp) << endl;
    return 0;
}
